import type { UploadData } from '@/types/common'
import { request } from '@/utils/reuqest'

/**
 * 上传接口
 * @param fd 二进制文件数据
 * @returns
 */
export const uploadAPI = (fd: FormData) => {
	return request<UploadData>('/upload', 'POST', fd)
}
